From 1577a7d4152e04354458105fd3029c3f82c10ba4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Mon, 16 Aug 2010 00:32:56 +0200 Subject: [PATCH] tests/testoffscreenwindow.c: Use accessor functions to access GtkWidget --- tests/testoffscreenwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testoffscreenwindow.c b/tests/testoffscreenwindow.c index 852a073c49..bf6a321f13 100644 --- a/tests/testoffscreenwindow.c +++ b/tests/testoffscreenwindow.c @@ -13,7 +13,7 @@ da_expose (GtkWidget *widget, { pixmap = gtk_offscreen_window_get_pixmap (offscreen); - cr = gdk_cairo_create (widget->window); + cr = gdk_cairo_create (gtk_widget_get_window (widget)); gdk_cairo_set_source_pixmap (cr, pixmap, 50, 50); cairo_paint (cr); cairo_destroy (cr); -- 2.30.2